// 存量管理
import BasicLayout from '@/layouts/basic-layout'
const meta = {
  auth: true
}
export default {
  path: '/stock',
  name: 'stock',
  redirect: {
    name: 'stock'
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'stock-overflow-manage/stock-overflow',
      name: 'stockOverflow',
      meta: {
        auth: true,
        title: '存量溢出管理'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/stock-overflow')
    },
    {
      path: 'stock-overflow-manage/transfer-goods/add',
      name: 'addTransferGoods',
      meta: {
        auth: false,
        title: '跨区域转货-新增'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/stock-overflow/transfer-goods/add')
    },
    {
      path: 'stock-overflow-manage/transfer-goods/view',
      name: 'viewTransferGoods',
      meta: {
        auth: false,
        title: '跨区域转货-查看'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/stock-overflow/transfer-goods/view')
    },
    {
      path: 'stock-overflow-manage/scrap-application/add',
      name: 'addScrapApplication',
      meta: {
        auth: false,
        title: '报废申请-新增'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/stock-overflow/scrap-application/add')
    },
    {
      path: 'stock-overflow-manage/scrap-application/view',
      name: 'viewScrapApplication',
      meta: {
        auth: false,
        title: '报废申请-查看'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/stock-overflow/scrap-application/view')
    },
    {
      path: 'eliminatedGoods/disableWarningList',
      name: 'disableWarningList',
      meta: {
        auth: true,
        title: '淘汰商品停用提醒'
      },
      component: () => import('@/pages/stock/eliminated-goods/disable-warning')
    },
    {
      path: 'stock-overflow-manage/audit',
      name: 'recordList',
      meta: {
        auth: false,
        title: '存量溢出审批'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/audit')
    },
    {
      path: 'stock-overflow-manage/stock-overflow-record/otherRecord',
      name: 'stockOverflowOtherRecord',
      meta: {
        auth: false,
        title: '存量溢出处理-单据明细'
      },
      component: () => import('@/pages/stock/stock-overflow-manage/audit/detail')
    },
    // 上下限管理
    {
      path: 'upperLowerLimits/limitManage',
      name: 'limitManage',
      meta: {
        auth: true,
        title: ' 上下限管理'
      },
      component: () => import('@/pages/stock/upper-lower-limits/manage')
    },
    {
      path: 'upperLowerLimits/limitManage/batchEdit',
      name: 'limitBatchEdit',
      meta: {
        auth: true,
        title: ' 上下限批量编辑'
      },
      component: () => import('@/pages/stock/upper-lower-limits/manage/batchEdit')
    },
    {
      path: 'upperLowerLimits/limitManage/view',
      name: 'limitBatchView',
      meta: {
        auth: true,
        title: ' 上下限管理查看'
      },
      component: () => import('@/pages/stock/upper-lower-limits/manage/batchEdit/view')
    },
    {
      path: 'upperLowerLimits/limitAudit',
      name: 'limitAudit',
      meta: {
        auth: true,
        title: ' 上下限管理审核'
      },
      component: () => import('@/pages/stock/upper-lower-limits/audit')
    },
  ]
}
